<div>
    <div id="banners" class="popup" style="background:#fff;float:right;">
        <style>
            .popup ul {
                position: relative;
                height: 30px;
                z-index: 1;
                border: 1px solid #C6C6C6;
                -moz-border-radius: 4px 4px 4px 4px;
                border-radius: 4px;
                background: #E4E4E4;
            }
            
            .popup ul li {
                list-style-image: none;
                list-style-position: outside;
                list-style-type: none;
                float: left;
                line-height: 25px;
                margin-top: 5px;
                font-size: 12px;
                padding: 0px 5px 0;
            }
            
            .popup li.on {
                border-top: 1px solid #C6C6C6;
                border-left: 1px solid #C6C6C6;
                border-right: 1px solid #C6C6C6;
                border-bottom: -1px solid #fff;
                -moz-border-radius: 4px 4px 0 0;
                border-radius: 4px 4px 0 0;
                background: #FFF;
            }
			#list_menu,#list_content{
				margin:10px;
			}
			#list_content{
				
			}
			#list_menu{
				
			}
        </style>
        <div id="list_menu">
            <ul>
                <li class="on">
                    选择广告
                </li>
            </ul>
        </div>
        <div id="list_content">
            <div class="top_action">
                <select class="select" id="filter">
                    <option value="0">查看全部分类目录</option>
                </select>
                <input type="button" class="input" name="filter_btn" id="filter_btn" value="过滤"/>
                <div class="page right">
                    <if $page_info.page.previous_url>
                        <a class='text' href='[@htmlspecialchars($page_info.page.previous_url)]'>上一页</a>
                    </if>
                    <foreach name="page_info.page.pages" key="key" var="var">
                        <if $var.page_num == $page_info.current_page>
                            <span title="第[@htmlspecialchars($var.page_num)]页">[@htmlspecialchars($var.page_num)]</span>
                            <else>
                            <a class="num" href="[@htmlspecialchars($var.page_link)]" title="第[@htmlspecialchars($var.page_num)]页">[@htmlspecialchars($var.page_num)]</a>
                        </if>
                    </foreach>
                    <if $page_info.page.next_url>
                        <a class='text' href='[@htmlspecialchars($page_info.page.next_url)]'>下一页</a>
                    </if>
                </div>
            </div>
            <table width="100%">
                <tbody>
                    <foreach name="result.banners" var="banner" key="key">
                        <tr class="table_list">
                            <td>
                                <img width="30" height="30" src="http://[$banner.b_url]"/>
                                <td>
                                    [@htmlspecialchars($banner.b_file_name)]
                                </td>
                                <td>
                                    [@htmlspecialchars($banner.b_create_user)]
                                </td>
                                <td>
                                    <if $banner.b_update_date>
 										[@date('Y-m-d',$banner.b_update_date)]
                                        <else>
                                        &nbsp;
                                    </if>
                                </td>
                                <td>
                                    <input type="button" value="选择" id="[$banner.b_id]" url="[$banner.b_url]" name="[$banner.b_file_name]" class="select_banner"/>
                                </td>
                                </tr>
                            </foreach>
                            </tbody>
                        </table>
                        <div class="top_action">
                            <div class="page right">
                                <if $page_info.page.previous_url>
                                    <a class='text' href='[@htmlspecialchars($page_info.page.previous_url)]'>上一页</a>
                                </if>
                                <foreach name="page_info.page.pages" key="key" var="var">
                                    <if $var.page_num == $page_info.current_page>
                                        <span title="第[@htmlspecialchars($var.page_num)]页">[@htmlspecialchars($var.page_num)]</span>
                                        <else>
                                        <a class="num" href="[@htmlspecialchars($var.page_link)]" title="第[@htmlspecialchars($var.page_num)]页">[@htmlspecialchars($var.page_num)]</a>
                                    </if>
                                </foreach>
                                <if $page_info.page.next_url>
                                    <a class='text' href='[@htmlspecialchars($page_info.page.next_url)]'>下一页</a>
                                </if>
                            </div>
                        </div>
                        </div>
                    </div>
					<script>
						$(".top_action a").live("click",function(){
							var $url = $(this).attr("href");
							$.ajax({url:$url,method:"POST",dataType:"HTML",success:function(html){
								var list_content = $(html).find("#list_content");
								$("#list_content").replaceWith(list_content);
							}});
							return false;
						});
					</script>
                    </div>
